package com.collaboration.electron.services;

import com.collaboration.electron.dao.BrandRepository;
import com.collaboration.electron.dao.CompositionRepository;
import com.collaboration.electron.entities.Brand;
import com.collaboration.electron.entities.Composition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lydia
 * @param
 * @return 无
 */

@Service
public class BrandService {
    @Autowired
    BrandRepository brandRepository;

    public List<Brand> getAll(){

        return brandRepository.findAll();
    }

    public Brand save(Brand brand){
        return brandRepository.save(brand);
    }


}
